<section id="top_head">
    <div class="sec_cont">
        <div class="logo"><a href="<?php echo $GLOBALS['base_url']; ?>"><img src="<?php echo $theme_root_path ?>/images/logo.png" width="300" height="59" alt="Logo" /></a></div>
        <div id="header_actions">
            <?php
            //print $header; 
            $login_block = module_invoke('core101_login_information_block', 'block', 'view'); //login link
            $cart_block = module_invoke('uc_cart', 'block', 'view', 0);
            ?>
            <?php print $login_block['content']; ?>
            <div class="ub_cart_block">
                <?php 
                print $cart_block['content']; ?>
            </div>
        </div><!--end header_actions-->



    </div>
</section><!--end top_head-->
<section id="mainNav">
    <div class="sec_cont"><nav>
            <ul>
                <?php
                foreach ($primary_links as $item) {
                    $href = url($item['href']);
                    $title = $item['title'];
                    print "<li><a href='$href'>$title</a></li>";
                }
                ?>
                <div class="clear"></div>
            </ul>
        </nav>
        <?php print $search_box; ?>
    </div>
</section>